import request from "/@/utils/request"

export function fetchRCList(query?: Object) {
  return request({
    url: '/bzg/wzRecommendedColumn/page',
    method: 'get',
    params: query
  })
}

export function addRC(obj?: Object) {
  return request({
    url: '/bzg/wzRecommendedColumn',
    method: 'post',
    data: obj
  })
}

export function getRC(id?: string) {
  return request({
    url: '/bzg/wzRecommendedColumn/' + id,
    method: 'get'
  })
}

export function delRCs(ids?: Object) {
  return request({
    url: '/bzg/wzRecommendedColumn',
    method: 'delete',
    data: ids
  })
}

export function putRC(obj?: Object) {
  return request({
    url: '/bzg/wzRecommendedColumn',
    method: 'put',
    data: obj
  })
}

